package com.david.dao;

import com.david.entity.WebSite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface WebSiteDao {

    @Select("select * from webSite where id = 1")
    WebSite GetWebSite();

    @Update("update webSite set title = #{title},keywords=#{keywords},description=#{description},logoUrl=#{logoUrl},cellPhone=#{cellPhone},wechat=#{wechat},copyright=#{copyright},code=#{code},email=#{email} where id =1")
    int UpdateWebSite(WebSite site);
}
